package com.huang.loop;
/**
 目标：
 掌握break和continue的用法
 */
public class BreakAndContinueDemo8 {
    public static void main(String[] args) {
        for (int i = 1; i <= 5; i++) {
            System.out.println("打神石:"+ i);
            if (i == 3) {
                break;
            }
        }

        for (int i = 1; i <= 5; i++) {
            if (i == 3) {
                continue;
            }
            System.out.println("荒天帝:" + i);
        }
    }
}
